﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Edu.Web.Data.DV;
using Edu.Web.Data.Entity;
using ESoft.Core.Data.Service;

namespace Edu.Web.Data.Service
{
    public interface ICourceExamService : IBaseService<CourceExamEntity, long>
    {
        /// <summary>
        /// 获取学生成绩列表
        /// </summary>
        /// <param name="userId">学生用户ID</param>
        /// <returns></returns>
        List<CourceScoreDV> GetCourceScoreByStuId(long userId);

        /// <summary>
        /// 获取学生成绩列表
        /// </summary>
        /// <param name="createUserId">创建人ID</param>
        /// <returns></returns>
        List<CourceScoreDV> GetCourceScoreByCreateUserId(long createUserId);

        void SaveExam(CourceExamEntity courceExamVO, List<CourceExamScoreEntity> courceExamScoreList);
    }
}
